]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
sessionMode: Reindent
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 01:23:22 +0000 (22:23 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 21:42:45 +0000 (18:42 -0300)
This puts all the parameters at the same indent level, which makes the
file much easier to read.

https://bugzilla.gnome.org/show_bug.cgi?id=683156

js/ui/sessionMode.js

index 62c6da62e5ab91f2f4a7ce1b9475485706e51162..40a68f65c0fb4b65aa34a52b0bdf9c470d6084a1 100644 (file)
@@ -9,23 +9,24 @@ const Params = imports.misc.params;
 const DEFAULT_MODE = 'user';
 
 const _modes = {
-    'gdm': { hasOverview: false,
-             showCalendarEvents: false,
-             allowSettings: false,
-             allowExtensions: false,
-             allowKeybindingsWhenModal: true,
-             hasRunDialog: false,
-             hasWorkspaces: false,
-             hasWindows: false,
-             createUnlockDialog: Main.createGDMLoginDialog,
-             components: [],
-             panel: {
-                 left: [],
-                 center: ['dateMenu'],
-                 right: ['a11y', 'display', 'keyboard',
-                         'volume', 'battery', 'powerMenu']
-             }
-           },
+    'gdm': {
+        hasOverview: false,
+        showCalendarEvents: false,
+        allowSettings: false,
+        allowExtensions: false,
+        allowKeybindingsWhenModal: true,
+        hasRunDialog: false,
+        hasWorkspaces: false,
+        hasWindows: false,
+        createUnlockDialog: Main.createGDMLoginDialog,
+        components: [],
+        panel: {
+            left: [],
+            center: ['dateMenu'],
+            right: ['a11y', 'display', 'keyboard',
+                    'volume', 'battery', 'powerMenu']
+        }
+    },
 
     'lock-screen': {
         hasOverview: false,
@@ -45,40 +46,42 @@ const _modes = {
         },
     },
 
-    'initial-setup': { hasOverview: false,
-                       showCalendarEvents: false,
-                       allowSettings: false,
-                       allowExtensions: false,
-                       allowKeybindingsWhenModal: false,
-                       hasRunDialog: false,
-                       hasWorkspaces: false,
-                       components: ['keyring'],
-                       panel: {
-                           left: [],
-                           center: ['dateMenu'],
-                           right: ['a11y', 'keyboard', 'volume']
-                       }
-                     },
-
-    'user': { hasOverview: true,
-              showCalendarEvents: true,
-              allowSettings: true,
-              allowExtensions: true,
-              allowKeybindingsWhenModal: false,
-              hasRunDialog: true,
-              hasWorkspaces: true,
-              hasWindows: true,
-              createUnlockDialog: Main.createSessionUnlockDialog,
-              isLocked: false,
-              components: ['networkAgent', 'polkitAgent', 'telepathyClient',
-                           'keyring', 'recorder', 'autorunManager', 'automountManager'],
-              panel: {
-                  left: ['activities', 'appMenu'],
-                  center: ['dateMenu'],
-                  right: ['a11y', 'keyboard', 'volume', 'bluetooth',
-                          'network', 'battery', 'userMenu']
-              }
-            }
+    'initial-setup': {
+        hasOverview: false,
+        showCalendarEvents: false,
+        allowSettings: false,
+        allowExtensions: false,
+        allowKeybindingsWhenModal: false,
+        hasRunDialog: false,
+        hasWorkspaces: false,
+        components: ['keyring'],
+        panel: {
+            left: [],
+            center: ['dateMenu'],
+            right: ['a11y', 'keyboard', 'volume']
+        }
+    },
+
+    'user': {
+        hasOverview: true,
+        showCalendarEvents: true,
+        allowSettings: true,
+        allowExtensions: true,
+        allowKeybindingsWhenModal: false,
+        hasRunDialog: true,
+        hasWorkspaces: true,
+        hasWindows: true,
+        createUnlockDialog: Main.createSessionUnlockDialog,
+        isLocked: false,
+        components: ['networkAgent', 'polkitAgent', 'telepathyClient',
+                     'keyring', 'recorder', 'autorunManager', 'automountManager'],
+        panel: {
+            left: ['activities', 'appMenu'],
+            center: ['dateMenu'],
+            right: ['a11y', 'keyboard', 'volume', 'bluetooth',
+                    'network', 'battery', 'userMenu']
+        }
+    }
 };
 
 function listModes() {